<template>
  <el-aside width="200px">
    <el-menu
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
      default-active="2"
    >
      <el-submenu index="item.id +'' " v-for="item in asideMenu" :key="item.id">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>{{item.authName}}</span>
        </template>
        <el-menu-item-group>
          <template slot="title">分组一</template>
          <el-menu-item index="1-1">选项1</el-menu-item>
          <el-menu-item index="1-2">选项2</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
</template>

<script>
export default {
  props: {
    asideMenu: {
      type: Array,
    },
  },
};
</script>

<style lang="scss" scoped>
.el-aside {
  background-color: rgb(238, 241, 246);
  .el-menu {
    border-right-width: 0px;
  }
}
</style>